package it.tcm.TeacherClassMate.util;


import it.tcm.TeacherClassMate.beans.OrderRowBean;

import java.util.Comparator;

public class OrderRowBeanComparator implements Comparator {

    /**
     * compare
     *
     * @param o1 Object
     * @param o2 Object
     * @return int
     */
    public int compare(Object o1, Object o2) {
	if (((OrderRowBean) o1).getPosition() > ((OrderRowBean) o2).getPosition())
	    return 1;
	else
	    return -1;

    }

}
